import Vue from 'vue'
import { VSnackbar } from 'vuetify/lib'

export default Vue.extend({
    name: 'Snackbars',
    props: {
        value: Boolean,
        text: String
    },
    components: {
        'v-snackbar': VSnackbar
    },
    render() {
        return (
            <v-snackbar
                value={this.value}
                timeout={2000}
                style={{ display: 'fixed', bottom: '5vh', zIndex: 100000, textAlign: 'center' }}
            >
                {this.text}
            </v-snackbar>
        )
    }
})